﻿using System;
using System.Collections.Generic;
using System.Text;
using Sbook.Data;

namespace Sbook.Business
{
    public class BannerService
    {
        private static BannnerController db = new BannnerController();
        #region[Banner_GetById]
        public static List<Data.BannerInfo> Banner_GetById(string Id)
        {
            return db.Banner_GetById(Id);
        }
        #endregion
        #region[Banner_GetByTop]
        public static List<Data.BannerInfo> Banner_GetByTop(string Top, string Where, string Order)
        {
            return db.Banner_GetByTop(Top, Where, Order);
        }
        #endregion
        #region[Banner_GetByAll]
        public static List<Data.BannerInfo> Banner_GetByAll()
        {
            return db.Banner_GetByAll();
        }
        #endregion
        #region[Banner_Paging]
        public static List<Data.BannerInfo> Banner_Paging(string CurentPage, string PageSize)
        {
            return db.Banner_Paging(CurentPage, PageSize);
        }
        #endregion
        #region[Banner_Insert]
        public static bool Banner_Insert(BannerInfo data)
        {
            return db.Banner_Insert(data);
        }
        #endregion
        #region[Banner_Update]
        public static bool Banner_Update(BannerInfo data)
        {
            return db.Banner_Update(data);
        }
        #endregion
        #region[Banner_Delete]
        public static bool Banner_Delete(string Id)
        {
            return db.Banner_Delete(Id);
        }
        #endregion
    }
}